﻿using System;
using System.Runtime.Serialization;
using AOPDemo.Aspects;

[assembly: AutoDataContract("http://services.bigbank.com/banking/v1#data", AttributeTargetTypes = "AOPDemo.Domain.*")]

namespace AOPDemo.Domain
{
    public class AuthToken
    {
        public string UserId { get; set; }
        public string SessionId { get; set; }
    }

    public class User
    {
        public string UserName { get; set; }
        public string Password { get; set; }
    }

    [DataContract]
    public enum LogLevel
    {
        [EnumMember] Debug,
        [EnumMember] Info,
        [EnumMember] Warning,
        [EnumMember] Error
    }

    public class PagingContext
    {
        public int Page { get; set; }
        public int PageSize { get; set; }
    }

    public class Account
    {
        public string Id { get; set; }
        public string Name { get; set; }
        public string Type { get; set; }
        public decimal Balance { get; set; }
    }

    public class Transaction
    {
        public string Id { get; set; }
        public string FromAccountId { get; set; }
        public string ToAccountId { get; set; }
        public DateTime Date { get; set; }
        public decimal Amount { get; set; }
        public string Type { get; set; }
    }
}